<?php
	session_start();
	ob_start();

	require("./inc/config-system.inc.php");
	require("./inc/config-db.inc.php");
	require("./inc/fm.inc.php");
	require("./class/adodb/adodb.inc.php");

	// connection database
	$objConn = ADONewConnection(DB_DRIVER);
	$objConn->Connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
	//$objConn->debug = TRUE;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Auto Posting Form</title>
<style type="text/css">
<!--
.center {
	text-align: center;
	font-weight: normal;
	font-size: 14px;
	font-family: "Microsoft Sans Serif";
}
.right {
	text-align: right;
}
.body {
	font-family: "Microsoft Sans Serif";
	font-size: 14px;
	margin-top: 0px;
}
.input {
	font-family: "Microsoft Sans Serif";
	font-size: 14px;
}
.header_center {
	font-family: "Microsoft Sans Serif";
	font-size: 14px;
	text-decoration: underline;
	text-align: center;
	font-weight: bold;
	color: #FFF;
	background-color: #F60;
}
.input_disable {
	font-family: "Microsoft Sans Serif";
	font-size: 14px;
	color: #000;
	background-color: #CCC;
}
.input_focus {
	font-family: "Microsoft Sans Serif";
	font-size: 14px;
	background-color: #FFC;
	border: 2px solid #F60;
}
.top {
	-moz-border-radius-bottomleft:0.5em;
	-moz-border-radius-bottomright:0.5em;
	-moz-border-radius-topleft:0.5em;
	-moz-border-radius-topright:0.5em;
	background-color: #000;
	border:2px solid #F90;
	color: #006;
	display:block;
	overflow:auto;
	padding:6px 12px;
	white-space:pre;
}

-->
</style>

<link href="./css/datepicker.css" rel="stylesheet" type="text/css" media="screen" />
<link href="./css/tablesorter.css" rel="stylesheet" type="text/css" media="screen" />
<link href="./css/tablehover.css" rel="stylesheet" type="text/css" media="screen" />
<link href="./css/slidepanel.css" rel="stylesheet" type="text/css" media="screen" />
<link href="./css/autocomplete.css" rel="stylesheet" type="text/css" media="screen" />

<script type="text/javascript" src="./js/jquery.inc.js"></script>
<script type="text/javascript" src="./js/form.inc.js"></script>
<script type="text/javascript" src="./js/datepicker.inc.js"></script>
<script type="text/javascript" src="./js/livequery.inc.js"></script>
<script type="text/javascript" src="./js/blockui.inc.js"></script>
<script type="text/javascript" src="./js/numeric.inc.js"></script>

<?php require("./autopost.inc.js.php"); ?>
</head>

<body class="body">

<div id="mainPanel">
    <div id="panel"><?php require("./menu.inc.php"); ?></div>
    <p class="slide"><a href="#" class="btn-slide">Main Menu</a></p>
</div>

<br /><br />

<form id="auto_post" method="post" action="./auto_post.php">

    <table width="100%" border="0" cellpadding="2" cellspacing="2" class="body">
        <tr class="header_center">
            <td><a name="inputbox">Auto Posting</a></td>
        </tr>
        <tr>
            <td class="left">&nbsp;</td>
        </tr>
        <tr>
            <td class="left"><input type="submit" name="BTTtruncate" id="BTTtruncate" value="TRUNCATE TABLE" class="input" /></td>
        </tr>
        <tr>
            <td class="left"><hr /></td>
        </tr>
    	<tr>
            <td>Document Type<br /><br />
                <select name="SELtype[]" id="SELtype">
                    <option value=""></option>
                    <option value="AR">AR</option>
                    <option value="AP">AP</option>
                    <option value="ADJ">ADJUST</option>
                </select>
                <br /><br />
                Document No.
                <br /><br />
                <input name="TXTdoc_no_from[]" type="text" class="input" id="TXTdoc_no_from" value="" />
                To&nbsp;
                <input name="TXTdoc_no_to[]" type="text" class="input" id="TXTdoc_no_to" value="" />
			</td>
		</tr>
        <tr>
            <td><input type="submit" name="BTTexecute" id="BTTexecute" value="Execute" class="input" />
                <input type="reset" name="BTTreset" id="BTTreset" value="Reset" class="input" />
            </td>
        </tr>
        <tr>
            <td class="left"><hr /></td>
        </tr>
	</table>

</form>

</body>
</html>
<?php ob_end_flush(); ?>
